package com.mengfx.controller;

import javax.servlet.http.HttpServletRequest;

import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import com.mengfx.advise.RequestLimit;

@Controller
public class LimitController {
	@RequestLimit(count = 1, time = 60000)
	@RequestMapping(value = "/test", method = RequestMethod.GET)
	public String test(HttpServletRequest request, ModelMap modelMap) {
		System.out.println("a");
		return "";
	}
}
